<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    .box {
      width: 280px;
      height: 180px;
      /* 边框宽度有多大，边框图片就有多大 */
      border: 50px solid #000;

      border-width: 100px 30px 50px 10px;

      /* 能不能用图片填充边框？图片边框 */
      /* 默认是把图片放在四个角 */
      /* border-image-source: url(./border2.jpg);  */
      /* 上、右、下、左 */
      /* border-image-slice: 168 168 168 168;
      border-image-repeat: stretch; */

      /* 图片边框也可以连写 */
      border-image: url('./border2.jpg') 168 168 168 168 round;

      background-color: #f00;
    }
  </style>
</head>

<body>

  <div class="box"></div>
</body>

</html>